var link1 = '<dips id="';
var link2 = '</dips>';
var gbr1 = '<difs id="';
var cah = 'cahelek';
var gbr2 = '></difs>';
var alte = 'sip="';

var baru1 = '<a rel="nofollow" target="_blank" href="http://redirect.viglink.com?pslink=';
var baru2 = '</a>';
var cahbaru = 'http://catalog.viglink.com/img/public/';
var gbrbr1 = '<img src="';
var gbrbr2 = '/>';
var altebr = 'alt="';
function updateme()
{
var text = document.getElementsByTagName('body')[0].innerHTML;
text = replaceAll(text,gbr1,gbrbr1);
text = replaceAll(text,cah,cahbaru);
text = replaceAll(text,alte,altebr);
text = replaceAll(text,gbr2,gbrbr2);
text = replaceAll(text,link1,baru1);
text = replaceAll(text,link2,baru2);
document.getElementsByTagName('body')[0].innerHTML = text;
}
function replaceAll(txt, replace, with_this) {
return txt.replace(new RegExp(replace, 'g'),with_this);

}